<style>
#artikli_paketi #AP_filter_form fieldset{
	float:left;
}
#artikli_paketi #AP_result{
	clear:both;
	margin-top:2px;
}
#artikli_paketi #AP_result table tr:hover{
	background:{{$highlight}};
	color:{{$highlighttext}};
}
#artikli_paketi #AP_result table tr td input[type=button]{
	margin:0px 2px;
	padding:0px;
	width:16px;
	height:16px;
	border:none;
	background-color:transparent;
	cursor:pointer;
}
#artikli_paketi #AP_result table tr td input[type=button]:hover{
	background-color:#fff;
}
#artikli_paketi #AP_result table ul{
	width:100%;
	list-style-type:none;
	margin:0px;
	padding:0px;
	float:left;
	font-size:11px;
}
#artikli_paketi #AP_result table ul li{
	width:100%;
	margin:0px;
	padding:2px;
	border-bottom:1px dotted #aaa;
	float:left;
	clear:both;
}
#artikli_paketi #AP_result table ul li:last-child{
	border-bottom:none;
}
#artikli_paketi #AP_result table ul li:hover{
	background:{{$highlighttext}};
	color:{{$highlight}};
}
#artikli_paketi #AP_result table ul li span{
	display:block;
	float:left;
	margin:0px 2px 0px 0px;
}
#artikli_paketi #AP_result table ul li span.pack_art_id{
	width:20px;
	text-align:right;
	margin-right:5px;
	padding-right:2px;
}
#artikli_paketi #AP_result table ul li span.pack_art_name{
	font-weight:bolder;
}
#artikli_paketi #AP_result table ul li span.pack_art_price{
	float:right;
	margin:0px;
	text-align:right;
	font-weight:bolder;
}
#artikli_paketi #AP_result table ul li span.pack_art_popust{
	float:right;
	margin:0px;
	width:35px;
	text-align:right;
}
</style>
<div id="artikli_paketi">
	<h2>Paketi artikala</h2>
	<form id="AP_filter_form" class="area" action="javascript:void(0)" onsubmit="submitForm(this,'artikli.php','POST','setContent')">
		<input type="hidden" name="a" value="artikli_paketi" />
		
		<label class="left" for="filter_name">Naziv:</label><input type="text" name="filter_name" id="filter_name" value="{{$filter_name}}" />
		<label class="left" for="filter_date_start">od:</label>
		<input style="width:60px;" type="text" name="filter_date_start" id="filter_date_start" value="{{$filter_date_start}}" />
		<input type="button" class="datePicker" onclick="displayDatePicker('filter_date_start',this)" />
			
		<label style="margin-left:10px;" class="left" for="filter_date_end">do:</label>
		<input style="width:60px;" type="text" name="filter_date_end" id="filter_date_end" value="{{$filter_date_end}}" />
		<input type="button" class="datePicker" onclick="displayDatePicker('filter_date_end',this)" />
		
		<input type="submit" value="filter" id="AP_submit_button" />
	</form>
	<div class="area" id="AP_result">
	<input type="button" class="novi" onclick="LoadRSDoc('artikli.php?a=artikli_paketi&mod=new','ypAjaxForm')" value="novi paket..." />
	<br clear="all" />
	{{$comment_start}}
	<table>
		<tr class="head" align="center">
			<td>šifra</td>
			<td>naziv</td>
			<td>trajanje</td>
			<td>cena</td>
			<td>opis</td>
			<td width="400">sadržaj</td>
			<td></td>
		</tr>
		{{%loop start pack_id}}
		<tr valign="top">
			<td align="right">{{$pack_id}}</td>
			<td>{{$pack_name}}</td>
			<td>{{$pack_time}}</td>
			<td>{{$pack_price}}</td>
			<td>{{$pack_desc}}</td>
			<td>{{$pack_arts}}</td>
			<td>
				<input type="button" class="edit" onclick="editArtiklPaket('{{$pack_id}}')" />
				<input type="button" class="delete" onclick="LoadRSDoc('artikli.php?a=artikli_paketi&mod=delete&id={{$pack_id}}','afterDeletePaket')" />
			</td>
		</tr>
		{{%loop end}}
	</table>
	{{$comment_end}}
	</div>
</div>